package model

import (
	"bilichatroom/model/model"
	"bilichatroom/pkg/DB"
	"fmt"
)

func Init() {
	//需要同步的表结构
	if err := DB.Engine.Sync2(
		new(model.User),
		new(model.Room),
		new(model.History),
	); err != nil {
		fmt.Println(err)
	}
}
